﻿-var cssHREF = ["./../css/header.css","./../css/content.css","./../css/task.css","./../css/table-style.css","./../css/git-stats.css","./../lib/jquery-ui-1.11.2.custom/jquery-ui.css"]
-var jsSRC = ["./../lib/jquery.js","./../lib/underscore.js","./../lib/backbone.js","./../lib/jquery-ui-1.11.2.custom/jquery-ui.js","./../script/api.js","./../script/table.js","./../script/task.js"]
-var data = {id:'问题序号',name:'名称',type:'问题类型',level:'优先级',status:'状态',desc:'问题简述',details:'详细描述',comment:'开发回复',createTime:'创建日期',modifyTime:'修改日期',version:'发布版本',publishTime:'发布时间'}

doctype html
html(lang='en')
  head
    meta(charset="UTF-8")
    title
    each href in cssHREF
      link(href="#{href}" rel="stylesheet" type="text/css")
  body
    #bcMark
    #taskDialog
    .container
      .header
        .top-nav
          ul
            li 退出
            li 用户
        .main-nav
          ul
            li(name="show-tasks") 问题汇总
            li(name="load-table") Table样式
            li(name="show-gitStats") GitStats
      .container
        .main-content
          .control
            img(class="show show-block" width="24px" height="15")
            .data-handle
              button(class="add-task") 添加新问题
              button(class="del-task") 删除问题
            .show-item(style="display: none;" title="点击需要显示和隐藏的列")
              each val,key in data
                if key == "id"
                  button(style="display:none" class="task-key-item selected" key="#{key}") #{val}
                else
                  button(class="task-key-item selected" key="#{key}") #{val}
          .content.table(style="display: none")
            .table-responsive
              table(cellpadding="0" cellspacing="0")
                thead
                  for val,key in data
                    th(key="#{key}") #{val}
                tbody
          .content.tasks
            -var status = {"todo":"新建", 'in-progress':'开发中', 'ready-for-test':'开发完成', 'done':'解决', 'refuse':'拒绝', 'feedback':'反馈'}
              for val,st in status
                div(class="#{st}")
                  .status-content
                    span 新建
                  .task-content
          .content.git-stats
            .git-list
            .git-avcivity
    each js in jsSRC
      script(src="#{js}" charset="utf-8")